Print the time to xend-debug.log, when starting or restarting Xend.
authorEwan Mellor <ewan@xensource.com>
Wed, 25 Oct 2006 14:01:51 +0000 (15:01 +0100)
committerEwan Mellor <ewan@xensource.com>
Wed, 25 Oct 2006 14:01:51 +0000 (15:01 +0100)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/server/SrvDaemon.py

index 03386d312724985fa70ebe4c9dcb071b80a55887..864c3715528d5283a280c3aac45dba98087b5035 100644 (file)
@@ -9,6 +9,7 @@ import os
 import signal
 import sys
 import threading
+import time
 import linecache
 import pwd
 import re
@@ -112,6 +113,8 @@ class Daemon:
             os.open('/dev/null', os.O_RDWR)
             os.dup(0)
             os.open(XEND_DEBUG_LOG, os.O_WRONLY|os.O_CREAT|os.O_APPEND)
+        print >>sys.stderr, ("Xend started at %s." %
+                             time.asctime(time.localtime()))
 
         
     def start(self, trace=0):